#define _CRT_SECURE_NO_WARNINGS 1
#include "myvector.h"
#include <iostream>
#include <string>
//#include <vector>
using namespace std;
void test1()
{
	myvector::vector<int> v(4, 1);
	v.push_back(2);
	myvector::vector<int> v1(v.begin() + 1, v.end() - 1);
	myvector::vector<int> v2(v);
	v2.resize(10, 3);
	v2.insert(v2.begin() + 3, 5);
	auto it = v.begin();
	while (it != v.end())
	{
		cout << *it << " ";
		it++;
	}
	auto it1 = v2.begin();
	while (it1 != v2.end())
	{
		cout << *it1 << " ";
		it1++;
	}
}
void test2()
{
	myvector::vector<string> v1;
	v1.push_back("11111");
	v1.push_back("22222");
	v1.push_back("33333");
	v1.push_back("11111");
	v1.push_back("22222");
	v1.push_back("33333");
	auto it = v1.begin();
	while (it != v1.end())
	{
		cout << *it << endl;
		it++;
	}
	cout << endl;
	myvector::vector<string> v2(v1);
	it = v2.begin();
	while (it != v2.end())
	{
		cout << *it << endl;
		it++;
	}
	cout << endl;

	myvector::vector<string>v3 = v2;
	v3.erase(v3.begin());
	v3.erase(v3.begin() + 3);
	//v3.erase(v3.end());
	it = v3.begin();
	while (it != v3.end())
	{
		cout << *it << endl;
		it++;
	}

}
int main()
{
	test2();
	return 0;
}